import { createRouter, createWebHistory } from "vue-router";

const routes = [
  {
    path: "/",
    redirect: "/index",
  },
  {
    path: "/maifangchengjiao",
    component: () => import("../views/index/zhanji/maifangchengjiao/index.vue"),
  },
  {
    path: "/zhufangchengjiao",
    component: () => import("../views/index/zhanji/maifangchengjiao/index.vue"),
  },
  {
    path: "/xiangqing",
    component: () => import("../views/index/tuangou/xiangqing/index.vue"),
  },
  {
    path: "/chuangjiantuangou",
    component: () =>
      import("../views/index/tuangou/chuangjiantuangou/index.vue"),
  },
  {
    path: "/kaituan",
    component: () => import("../views/index/tuangou/kaituan/index.vue"),
  },
  {
    path: "/zhibo",
    component: () => import("../views/index/zhibo/index.vue"),
  },
  {
    path: "/chuangjianzhibo",
    component: () => import("../views/index/zhibo/chuangjianzhibo/index.vue"),
  },
  {
    path: "/loushiquan",
    component: () => import("../views/index/loushiquan/index.vue"),
  },
  {
    path: "/fabu",
    component: () => import("../views/index/loushiquan/fabu/index.vue"),
  },
  {
    path: "/message",
    component: () => import("../views/index/message/index.vue"),
  },
  {
    path: "/qiuzhu",
    component: () => import("../views/index/qiuzhu/index.vue"),
  },
  {
    path: "/qiugou",
    component: () => import("../views/index/qiugou/index.vue"),
  },
  {
    path: "/index",
    component: () => import("../views/index/index.vue"),
  },
  {
    path: "/tuangou",
    component: () => import("../views/index/tuangou/index.vue"),
  },
  {
    path: "/paihangbang",
    component: () => import("../views/index/paihangbang/index.vue"),
  },
  {
    path: "/index/zhanji",
    component: () => import("../views/index/zhanji/index.vue"),
  },
  {
    path: "/xinfang",
    component: () => import("../views/index/xingfang/index.vue"),
  },
  {
    path: "/ershoufang",
    component: () => import("../views/index/ershoufang/index.vue"),
  },
  {
    path: "/chuzhufang",
    component: () => import("../views/index/chuzhufang/index.vue"),
  },
  {
    path: "/login",
    component: () => import("../views/login/index.vue"),
  },
];

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes,
});

export default router;
